package charatr04.example;
abstract class Animal14{
    abstract void shout();
}
class Cat14 extends Animal14{
    public void shout(){
        System.out.println("喵喵······");
    }
}
class Dog14 extends Animal14{
    public void shout(){
        System.out.println("汪汪······");
    }
}
public class Example14 {
    public static void main(String[] args) {
        Animal14 cat  = new Cat14();
        Animal14 dog =  new Dog14();
        dog.shout();
        cat.shout();
    }
}
